package me.zingon.doc.service;

import me.zingon.doc.model.Document;
import me.zingon.doc.model.User;

import java.util.List;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface DocumentService {

    int insert(Document document);

    int delete(Document document);

    int deleteByIds(Integer[] ids);

    int update(Document document);

    Document getById(Integer id);

    List<Document> list(Document document);

    Document getByUrlWithUser(String url, User user);
}